/**
 * Created by maiseries on 2018/1/2.
 */
import React from 'react';
import {StyleSheet, View, Image, TouchableWithoutFeedback, PanResponder} from 'react-native';

const initTop = layout.MAX_HEIGHT - layout.height(400);

export default class IndexQuickBtn extends React.Component {

    static propTypes = {
        click: React.PropTypes.func.isRequired
    }

    constructor(props) {
        super(props);
        this.state = {}
    }

    render() {
        return (
            <TouchableWithoutFeedback onPress={()=>this.props.click()}>
                <View style={styles.container}>
                    <Image
                        style={styles.icon}
                        source={require('../sources/icon_index_business.png')}
                        resizeMode={'contain'}
                    />
                </View>
            </TouchableWithoutFeedback>
        )
    }
}
const styles = StyleSheet.create({
    container: {
        position: 'absolute',
        right: layout.GAP_HORIZONTAL_LARGE,
        top: initTop,
    },
    box: {},
    icon: {
        width: layout.width(92),
        height: layout.width(92)
    }
})